package com.niiwoo.civet.trade.enums;

import com.niiwoo.tripod.provider.exception.NoSuchEnumValueException;
/**
 * 投资筛选配置 - 配置类型
 */
public enum  InvestStdConfigTypeEnum {
    PRODUCT((byte) 1, "产品"),
    DEADLINE((byte) 2, "期限"),
    REPAYMENT((byte) 3, "还款方式"),
    INTEREST_RATE((byte) 4, "利率"),
    INVESTABLE_AMOUNT((byte) 5, "可投金额"),
    ;

    public final Byte value;
    public final String desc;

    InvestStdConfigTypeEnum(Byte value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Byte getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static InvestStdConfigTypeEnum enumOf(Byte value) {
        for (InvestStdConfigTypeEnum investStdConfigTypeEnum : values()) {
            if (investStdConfigTypeEnum.value.equals(value)) {
                return investStdConfigTypeEnum;
            }
        }
        throw new NoSuchEnumValueException("InvestStdConfigTypeEnum:" + value);
    }
}
